# -*- coding: utf-8 -*-
"""
 @Time    : 2021/2/5 下午4:03
 @Author  : tgy
 
"""
import multiprocessing

class Person:
    ...
    def __init__(self, age):
        self._age = age

    def __getattr__(self, item):
        return '111'

    def __getattribute__(self, item):
        if item == 'age':
            ...
            return object.__getattribute__(self, '_' + item) ** 2
        else:
            return super().__getattribute__(item)


if __name__ == '__main__':
    ...
    per = Person(12)
    print(per.age)
